<div class="titlebar"><i class="iconfont icon-text_icon"></i>使用情况</div>
<div class="cards">
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$coupon_count}</div><div class="text">领取数量</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$coupon_end_count}</div><div class="text">失效数量</div></div>
    </div>
</div>
<div class="titlebar"><i class="iconfont icon-text_icon"></i>优惠券信息</div>  
<table class="pure-table"> 
    <tr><td class="w150">优惠券名称:</td><td>{$info.name}</td></tr>
    <tr><td>规则说明:</td><td>{$info.tips}</td></tr>
</table>
<div class="titlebar"><i class="iconfont icon-text_icon"></i>领取用户</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w60 fn-tac"></th>
            <th>昵称</th>
            <th class="w100 fn-tar">满用(￥)</th>
            <th class="w100 fn-tac">抵扣/折扣</th>
            <th class="w200 fn-tac">领取时间</th>
            <th class="w200 fn-tac">有效期</th>
            <th class="w70 fn-tac">删除</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
            <td><a href="javascript:openwin('{:url('user/review',['uid' => $vo.user.id])}')">{$vo.user.nickname}</a></td>
            <td class="fn-tac"><i class="iconfont icon-renminbi1688"></i>{$vo.howmuch|money}</td>
            <td class="fn-tac">{if $vo.types}<span class="badge bg-blue">{$vo.discount}折</span>{else}<span class="badge bg-green">{$vo.price}元</span>{/if}</td>
            <td class="fn-tac">{$vo.create_time|date="Y-m-d H:i:s"}</td>
            <td class="fn-tac">{$vo.create_time + $end_time|date="Y-m-d H:i:s"}</td>
            <td class="fn-tac"><a class="button isDel" url="{:url('coupon/deleteUser',array('id'=>$vo.id))}" href="javascript:;" title="删除">删除</a></td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','layer',function () {
    $('.isDel').isDel();
})
</script>